import { h } from "vue";

export const columns = [
  {
    title: "云主机名称",
    dataIndex: "name",
    slotName: "name",
    width:'160',
    ellipsis: true
  },
  {
    title: "规格配置",
    width: "260",
    dataIndex: "config",
    slotName: "config"
  },
  {
    title: "云主机IP",
    width: "180",
    dataIndex: "ip",
    slotName: "ip",
    ellipsis: true
  },
  {
    title: "宿主机IP",
    width: "180",
    dataIndex: "hyper_ip",
    slotName: "hyper_ip"
  },
  {
    title: "CPU利用率",
    width: "200",
    dataIndex: "cpu",
    slotName: "cpu"
  },
  {
    title: "内存利用率",
    width: "200",
    dataIndex: "memory",
    slotName: "memory"
  },
  {
    title: "运行状态",
    width: "140",
    dataIndex: "runStatus",
    slotName: "runStatus"
  },
  {
    title: "所属用户",
    dataIndex: "userName",
    width: "80",
  },
]

export const columnsViewInstance = [
  {
    title: "视图",
    dataIndex: "name",
    slotName: "name",
    // width:'200',
  },
  {
    title: "视图模板",
    dataIndex: "template_name",
  },
  {
    title: "更新时间",
    dataIndex: "updated_at",
  },
  {
    title: "创建时间",
    dataIndex: "createDate",
  },
  {
    title: "操作",
    dataIndex: "action",
    fixed:'right',
    width: "120",
    slotName:'action',
  },
]